package de.ohmhochschule.bme;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;

public class KeyAndTouchEventsActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		Log.i( getLocalClassName(), "" + keyCode );
		return super.onKeyDown(keyCode, event);
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		Log.i( getLocalClassName(), "x=" + event.getX() + ", y=" + event.getY() );
		return super.onTouchEvent(event);
	}
    
}